<?php get_header(); ?>




<div class="top">
  <div class="main">
    <div class="topbox">
      <p>Explore all our products</p>
    </div>
  </div>
</div>

<div class="pbox">
  <div class="main">
    <div class="pboxs">
		

			
<?php  
// 获取当前分类的ID  
$current_category_id = get_query_var('cat');  
  
		

		$child_categories = get_categories(array('parent' => $current_category_id));  

  
// 遍历子分类并输出  
foreach ($child_categories as $category) {  
    // 获取子分类的链接  
    $category_link = get_category_link($category->term_id);  
  
    // 获取子分类的标题  
    $category_title =  $category->name;  
	  $category_description =  $category->description;  

    // 获取子分类的描述  
//     $category_descriptionx = term_description($category->term_id);  
  
    echo '<a href="' . $category_link . '"><img src='. $category_description .'"><span>'. $category_title .'</span><p>Learn more<i></i></p></a>';  
}
		
?>
		
		
		
<!--       <a href="<?php echo esc_url(home_url('/')); ?>products/azure-sphere-gateway"><img src=<?php bloginfo('template_directory'); ?>/img/list/1.png"><span>Azure Sphere Gateway</span>
        <p>Learn more<i></i></p>
      </a>
      <a href="<?php echo esc_url(home_url('/')); ?>products/secure-industry-grade-gateway"><img src=<?php bloginfo('template_directory'); ?>/img/list/2.png"><span>Secure Industry <br />Grade Gateway</span>
        <p>Learn more<i></i></p>
      </a>
      <a href="<?php echo esc_url(home_url('/')); ?>products/lorawan-products"><img src=<?php bloginfo('template_directory'); ?>/img/list/3.png"><span>LoRaWAN Products</span>
        <p>Learn more<i></i></p>
      </a>
      <a href="<?php echo esc_url(home_url('/')); ?>products/mmwave-radar-detector"><img src=<?php bloginfo('template_directory'); ?>/img/list/4.png"><span>mmWave Radar Detector</span>
        <p>Learn more<i></i></p>
      </a>
      <a href="<?php echo esc_url(home_url('/')); ?>products/ble-beacon"><img src=<?php bloginfo('template_directory'); ?>/img/list/5.png"><span>BLE Beacon</span>
        <p>Learn more<i></i></p>
      </a> -->

    </div>
  </div>
</div>

<script>
  $(function() {
    $("body").addClass("bj2")
  })
</script>


<?php get_footer(); ?>